package com.dubbo.rpc.discovery.strategy;

import com.dubbo.rpc.common.LoadBalanceStrategyEnum;
import com.dubbo.rpc.domain.ProviderInfo;
import com.dubbo.rpc.domain.ServiceDiscoveryInfo;
import org.springframework.stereotype.Component;

/**
 * 负载均衡 - 轮询
 * @author liuxin
 */
@Component
public class PollingStrategy implements AbstractLoadBalanceStrategy {

    @Override
    public LoadBalanceStrategyEnum strategy() {
        return LoadBalanceStrategyEnum.POLLING;
    }

    @Override
    public ProviderInfo select(ServiceDiscoveryInfo serviceDiscoveryInfo) {
        return null;
    }
}
